package View;

import java.awt.Color;

import javax.swing.*;

@SuppressWarnings("serial")
public class GridLabel extends JLabel {
	
	private int x, y;
	
	public GridLabel(String label, int x, int y){
		super(label, JLabel.CENTER);
		this.x = x;
		this.y = y;
	}
	
	public int get_X(){
		return this.x;
	}
	
	public int get_Y(){
		return this.y;
	}
	
	@Override
	public boolean equals(Object o){
		if (o instanceof GridLabel){
            GridLabel b = (GridLabel)o; 
            return (this.x == b.get_X()) && (this.y== b.get_Y());
		}
		return false;

	}
	
	public void updateElevatorStatus(){
		this.setBackground(Color.BLACK);
	}
}
